package com.jh.user.pojo.enums;

import org.apache.commons.lang.StringUtils;

public enum DataEnums {
    IndustryCategory("industryCategory", "行业类别");

    DataEnums(String value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    private String value;

    private String desc;


    public String getValue() {
        return value;
    }

    public String getDesc() {
        return desc;
    }

    public static String getDesc(String value) {
        if (StringUtils.isBlank(value)) return "";
        DataEnums[] dataEnums = DataEnums.values();
        for (DataEnums data : dataEnums) {
            if (data.getValue().equals(value) ) {
                return data.getDesc();
            }
        }
        return "";
    }
}
